/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package smary.managed.time;

import java.util.Date;
import javax.inject.Named;
import javax.enterprise.context.ApplicationScoped;

/**
 *Ruft das aktuelle Datum ab, zu sehen in der Fußzeile von Scrummary.
 * @author Alexander Cannell
 */
@Named(value = "timeDaemon")
@ApplicationScoped
public class TimeDaemon {
    private Date date;

    public Date getDate() {
        getCurrentTimeString();
        return date;
    }
    public void getCurrentTimeString(){
        date = new Date();
    }
}
